package PTA;

import java.util.*;

public class Pta21{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int M = input.nextInt();
        double P = input.nextDouble(), sum1, sum2, sum3;
        int N = input.nextInt();
        sum1 = M*(Math.pow(1+P, N));
        sum2 = M*(1+P*N);
        sum3 = sum1>sum2? sum1-sum2: sum2-sum1;
        System.out.print(Math.round(sum1)+" ");
        System.out.print(Math.round(sum2)+" ");
        System.out.print(Math.round(sum3));
    }
}